package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.NameVerifiedExample.E_ID_CARD;
import static org.jsola.hr.example.NameVerifiedExample.E_NAME;
import static org.jsola.hr.example.NameVerifiedExample.E_POSITIVE_URL;
import static org.jsola.hr.example.NameVerifiedExample.E_REVERSE_URL;
import static org.jsola.hr.example.NameVerifiedExample.M_ID_CARD_MAX;
import static org.jsola.hr.example.NameVerifiedExample.M_ID_CARD_NOT_NULL;
import static org.jsola.hr.example.NameVerifiedExample.M_NAME_MAX;
import static org.jsola.hr.example.NameVerifiedExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.NameVerifiedExample.M_POSITIVE_URL_MAX;
import static org.jsola.hr.example.NameVerifiedExample.M_POSITIVE_URL_NOT_NULL;
import static org.jsola.hr.example.NameVerifiedExample.M_REVERSE_URL_MAX;
import static org.jsola.hr.example.NameVerifiedExample.M_REVERSE_URL_NOT_NULL;
import static org.jsola.hr.example.NameVerifiedExample.N_ID_CARD;
import static org.jsola.hr.example.NameVerifiedExample.N_NAME;
import static org.jsola.hr.example.NameVerifiedExample.N_POSITIVE_URL;
import static org.jsola.hr.example.NameVerifiedExample.N_REVERSE_URL;

/**
 * 实名认证
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【实名认证】的参数")
@Data
public class NameVerifiedAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "员工信息ID", example = "", required = true)
    @NotNull(message = "员工信息ID不能为空")
    @Length(max = 50, message = M_NAME_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD, required = true)
    @NotNull(message = M_ID_CARD_NOT_NULL)
    @Length(max = 32, message = M_ID_CARD_MAX)
    private String idCard;

    @ApiModelProperty(notes = N_POSITIVE_URL, example = E_POSITIVE_URL, required = true)
    @NotNull(message = M_POSITIVE_URL_NOT_NULL)
    @Length(max = 255, message = M_POSITIVE_URL_MAX)
    private String positiveUrl;

    @ApiModelProperty(notes = N_REVERSE_URL, example = E_REVERSE_URL, required = true)
    @NotNull(message = M_REVERSE_URL_NOT_NULL)
    @Length(max = 255, message = M_REVERSE_URL_MAX)
    private String reverseUrl;


}

